<template>
	<view class="mine">
		<scroll-view scroll-y="true" class="scrollView">
			<uni-forms ref="masterEnterForm" label-position="top" label-width="500rpx">
				<uni-forms-item label="标题">
					<view class="content">{{detail.situation}}</view>
					<view class="line"></view>
				</uni-forms-item>
				<uni-forms-item label="内容">
					<view class="content">{{detail.address}}</view>
					<view class="line"></view>
				</uni-forms-item>
				<!-- <uni-forms-item label="宽度(m)">
					<view class="content">{{detail.width}}</view>
					<view class="line"></view>
				</uni-forms-item>
				<uni-forms-item label="高度(m)">
					<view class="content">{{detail.height}}</view>
					<view class="line"></view>
				</uni-forms-item> -->
				<uni-forms-item label="描述">
					<view class="content">{{detail.remark}}</view>
					<view class="line"></view>
				</uni-forms-item>
				<uni-forms-item label="图片上传">
					<image class="image-s" :src="config.baseUrl+detail.picture" mode=""></image>
				</uni-forms-item>
			</uni-forms>
		</scroll-view>

		<!-- <you-bottom-btn :btnConfig="bottomBtnConfig" @formSubmit="formSubmit">
		</you-bottom-btn> -->
	</view>
	</view>
</template>

<script>
	import Mine from "@/api/mine.js"
	import config from '@/config.js'
	export default {
		data() {
			return {
				config,
				bottomBtnConfig: [{
					text: '	保存',
					class: 'confirm',
					funcName: 'formSubmit'
				}],
				detail: {},
				exitId: ""
			}
		},
		onLoad(e) {
			this.exitId = e.id;
			this.getDetail();
		},
		methods: {
			tabClick(e) {
				console.log(e);
				this.activeName = e;
			},
			formSubmit() {
				uni.navigateBack()
			},
			async getDetail() {
				let res = await Mine.getExitDetail(this.exitId);
				this.detail = res.data;
			}
		}
	}
</script>

<style lang="scss" scoped>
	/deep/.placeholder-class {
		font-size: 32rpx;
		color: $main-font-auxiliary;
		line-height: 1;
	}

	.mine {
		background: #F6F8FA;
		width: 100vw;
		height: 100vh;
		box-sizing: border-box;
		padding: 0 28rpx;
		background: #fff;
	}

	.scrollView {
		height: 100vh;
		box-sizing: border-box;
		padding-bottom: var(env(safe-area-inset-bottom) + 64px);

		.upload-after {
			background: #F6F8FA;
			width: 198rpx;
			height: 198rpx;
			line-height: 1;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.line {
			opacity: 0.1;
			height: 2rpx;
			background: #000;
			margin-top: 20rpx;
		}

		.content {
			font-size: 32rpx;
			color: $main-font-black;
		}

		.image-s {
			width: 198rpx;
			height: 198rpx;
			border-radius: 12rpx;
			margin-right: 20rpx;
		}
	}
</style>